package cn.yiyuan.auth.controller;

import cn.yiyuan.auth.entity.DepEntity;
import cn.yiyuan.auth.service.DepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @user m
 * @project Car_mall_system
 * @date 2023-12-26
 * @package cn.yiyuan.auth.controller
 */
@Controller
@RequestMapping("/dep")
public class DepController {

    @Autowired
    public DepService depService;

    //查询
    @GetMapping("/")
    public List<DepEntity> getAll(){
      return depService.getAll();

    }

    //新增

    //根据id删除
}
